﻿package 
{

import flash.display.Sprite;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.net.URLRequest;

public class MyTest extends Sprite
{
private var fx:Sprite;
private var sfx:RonSoundFX;
private var sound:Sound;
private var channel:SoundChannel;
public function MyTest() 
{
initializeUI()
settingUI()

}

private function destroy():void 
{
sfx.stop();
sfx = null;
}

private function initializeUI():void 
{
fx = new Sprite();
addChild(fx);
sfx = new RonSoundFX(fx, 1000, 395, 4);
fx.x =11;
fx.y = 2;
setChildIndex(fx,0);
fx.alpha =0.6;

}

private function settingUI():void 
{
sound = new Sound();

sfx.fxID = 0;
sfx.start();
}
}

} 
